package com.zx.controller;

import com.zx.service.RoleService;
import com.zx.service.RoleServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping(value = "/right")
public class RightController {
    @Resource
    private RoleServiceImpl roleServiceImpl;
    @RequestMapping(value = "/reload")
    public String reload(){//权限刷新
        roleServiceImpl.reloadFilterChainDefinitions();
        return "redirect:/main";//重定向到 main 页面
    }
}
